void main() {
  _getData();
}

Future<void> _getData() async {
  String? data = await _requestData().timeout(const Duration(seconds: 3), onTimeout: () => null);
  print(data);
}

Future<String?> _requestData() async {
  await Future.delayed(const Duration(seconds: 5));
  print("ready to return");
  return "data";
}
